package com.auxgroup.smarthome.qcloud.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 腾讯云操作签名
 * Created by gizwits on 2017/4/25.
 */
@Component
@ConfigurationProperties(prefix="qcloud.data")
public class QcloudConf {
    private int appId; // appId或者项目Id
    private String secretId; // 秘钥Id
    private String secretKey; // 秘钥Key
    private String bucketName; // bucket名称
    private String cosPath; // 要签名的cos路径
    private long expired; // 过期时间，默认15天后过期
    private String region; // 设置bucket所在的区域，比如华南园区：gz； 华北园区：tj；华东园区：sh ；


    public int getAppId() {
        return appId;
    }

    public void setAppId(int appId) {
        this.appId = appId;
    }

    public String getSecretId() {
        return secretId;
    }

    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getCosPath() {
        return cosPath;
    }

    public void setCosPath(String cosPath) {
        this.cosPath = cosPath;
    }

    public long getExpired() {
        return expired;
    }

    public void setExpired(long expired) {
        this.expired = expired;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }
}
